﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                assembly="Inovout.Membership"
				        namespace="Inovout.Membership.Domain">
  
  <class name="Actor" table="Membership_Actor" lazy="false">
    <id name="Id" access="field.camelcase"
        column="ActorId" type="Int32">
      <generator class="native" />
    </id>

    <set name="Memberships" table="Membership_Actor_Membership" inverse="true" cascade="all" >
      <key column="ActorId" foreign-key="fk_membership_actor"></key>
      <many-to-many class="Inovout.Membership.Domain.Membership,Inovout.Membership" column="MembershipId"></many-to-many>
    </set>
    
    <property name="Name" />
    <property name="Alias" />

    <property name="CreatedTime" access="field.camelcase" />
    <property name="CreatedUserName" access="field.camelcase" />
    <property name="ModifiedTime" access="field.camelcase" />
    <property name="ModifiedUserName" access="field.camelcase" />
    <property name="AccessedTime" access="field.camelcase" />
    <property name="AccessedUserName" access="field.camelcase" />
    <property name="Memo" />
    <property name="IsInvalid" />
  </class>
</hibernate-mapping>


